<HTML>
<HEAD>
<TITLE>TSP (libtsp) - AFsetFileType</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFACD">
<H2>AFsetFileType</H2>
<HR>
<H4>Routine</H4>
<DL>
<DT>
int AFsetFileType (const char String[])
</DL>
<H4>Purpose</H4>
<DL>
<DT>
Set the input audio file type
</DL>
<H4>Description</H4>
This routine sets the audio file type.  This file type is checked when
reading audio files.  Explicitly setting the audio file type bypasses the
need for a check for file type from the file header.
<PRE>
  "auto"      - determine the input file type from the file header
  "AU" or "au" - AU audio file
  "WAVE" or "wave" - WAVE file
  "AIFF" or "aiff" - AIFF or AIFF-C sound file
  "noheader"  - headerless (non-standard or no header) audio file
  "SPHERE"    - NIST SPHERE audio file
  "ESPS"      - ESPS sampled data feature file
  "IRCAM"     - IRCAM soundfile
  "SPPACK"    - SPPACK file
  "INRS"      - INRS-Telecom audio file
  "SPW"       - Comdisco SPW Signal file
  "CSL" or "NSP" - CSL NSP file
  "text"      - Text audio file
</PRE>
<P>
If the input string contains has a leading '$', the string is assumed to
specify the name of an environment variable after the '$'.  This routine
uses the value of this environment variable to determine the parameters.
For instance, if this routine is called as AFsetFileType("$AF_FILETYPE"),
this routine would look for the parameter string in environment variable
AF_FILETYPE.
<H4>Parameters</H4>
<DL>
<DT>
&lt;-  int AFsetFileType
<DD>
Error code, zero for no error
<DT>
 -&gt; const char String[]
<DD>
String with the input file type
</DL>
<H4>Author / revision</H4>
P. Kabal
/ Revision 1.17  2009/03/01
</BODY>
</HTML>
